//
//  DataManager.h
//  IPTV
//
//  Created by Echo on 13-12-5.
//  Copyright (c) 2013年 游强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DeviceInfo.h"

//所有的设备存放在deviceArray链表里面, devicePath是存放路径

@interface DataManager : NSObject{
    NSMutableArray *deviceArray;
    NSString *devicePath;
    NSString *deviceName;
}
@property(nonatomic, strong)NSMutableArray *deviceArray;
@property(nonatomic, strong)NSString *devicePath, *deviceName;
- (id)initWithName:(NSString*)name;

-(NSArray*)getWithName:(NSString*)name;
+ (DataManager *)GetInstance:(NSString*)devName;
-(void)getAllDevices;
-(void)setAllDevices;
-(void)deleteAllDevices;

+(NSString*)storePathWithFileName:(NSString*)fileName ;
+(void)archiverObject:(id)object path:(NSString*)path key:(NSString*)key;
+(id)unarchiverObjectFromPath:(NSString*)path key:(NSString*)key;
-(void)releaseDataManager:(NSString*)devicename;
-(void)btnPressed;
-(void)deleteDevice;
-(void)save;

@end
